package com.hnzq.cloud.freshorderassembly.mapper;

import com.hnzq.cloud.freshorderassembly.domain.FreShopcar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 周皓月
 * @since 2022-02-06
 */
public interface FreShopcarMapper extends BaseMapper<FreShopcar> {

    /**
     * 查询当前用户的购物车列表
     * @param userId
     * @return
     */
    @Select("select * from fre_shopcar where user_id = #{userId}")
    List<FreShopcar> FindShopcarGoods(@Param("userId") Integer userId);
}
